package guis;

import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class Window extends JFrame
{
	private static final long	serialVersionUID	= 1L;

	public Window( String title )
	{
		super( title );
		initialize();
	}

	private void initialize()
	{
		this.setResizable( false );

		this.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
		this.setLayout( null );
		setLookAndFeel();
	}

	private void setLookAndFeel()
	{
		try
		{
			UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
		}
		catch ( UnsupportedLookAndFeelException ex )
		{
			ex.printStackTrace();
		}
		catch ( IllegalAccessException ex )
		{
			ex.printStackTrace();
		}
		catch ( InstantiationException ex )
		{
			ex.printStackTrace();
		}
		catch ( ClassNotFoundException ex )
		{
			ex.printStackTrace();
		}
	}
}
